/*
 * Multiplatform Async Network Library
 * Copyright (c) 2007 Burlex
 *
 * Socket implementable class.
 *
 */

#ifndef _NET_PACKET_
#define _NET_PACKET_

#include "ByteBuffer.h"

class DataPacket: public ByteBuffer
{
public:
	DataPacket(uint16 size);
	virtual ~DataPacket(){};
	uint16 GetOpcode() const		
	{ 
		return _opcode; 
	};
	void SetOpcode(uint16 opcode)
	{
		_opcode = opcode;
	};
private:
	uint16 _opcode;
};


#endif
